מבחן codility בית 3 שאלות - קו רקיע חלק 1
בשאלה הזו הם כותבים על קו רקיע אבל הם מתכוונים למילוי תוכן המלבנים במשיכות מכחול. אי אפשר באתר הזה להוסיף תמונה אז תציירו לעצמכם עבור כל ערך במערך הקלט - מלבן בגובה כפי שרשום במערך וברוחב 1. המלבנים צמודים זה לזה (נראה כמו דיאגרמה)
שאלות מתוך הראיון
Your room is being decorated. On the largest wall you would like to paint a skyline. The skyline consists of rectangular buildings arranged in the line.
The building are all of the same width, but they may have different heights. The skyline shape is given as an array A whose elements specify the heights of consecutive buildings.
You would like to paint the skyline using continuous horizontal brushstrokes.
Every horizontal stroke is one unit high and arbitrarliy wide. The goal is to calculate the minimum number of horizontal strokes needed. For exemple, the above shape can be painted using nine horizontal strokes.
Starting from the bottom, you can paint the skyline in horizontal stripes with 1,3,2,2,1 strokes per respective stripe.
עוסקת בפיתוח תוכנה לאבטחת מידע - תוכנות חומת אש ו־VPN.בסיסה הבינלאומי נמצא ברדווד סיטי, קליפורניה, ומרכזי הפיתוח נמצאים בתל אביב ובבלארוס.החברה נוסדה בשנת 1993 על ידי שלמה קרמר, מריוס נכט וגיל שוויד.